package com.coocaa.ops.admin.v1.tab.service.impl;

import com.coocaa.ops.admin.v1.tab.model.TabInfoModel;
import com.coocaa.ops.admin.v1.tab.provider.ITabInfoQueryProvider;
import com.coocaa.ops.admin.v1.tab.service.ITabInfoQueryService;
import com.coocaa.ops.common.core.base.model.PageResultModel;
import com.coocaa.ops.common.core.biz.tab.entity.TabInfoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author bjh
 * @description 版面信息原始表-查询service接口实现
 * @date : 2020-06-15 16:27:18
 */
@Service
public class TabInfoQueryServiceImpl implements ITabInfoQueryService {
    @Autowired
    private ITabInfoQueryProvider thisQueryProvider;

    /**
     * 获取详情信息
     *
     * @param id
     * @param version
     * @return
     */
    @Override
    public TabInfoEntity getDetailInfo(Integer id, Integer version) {
        TabInfoEntity entity = thisQueryProvider.getDetailInfo(id, version);
        return entity;

    }

    /**
     * 分页数据-菜单自己使用
     *
     * @param model
     * @return
     */
    @Override
    public PageResultModel<TabInfoEntity> pageList(TabInfoModel model) {
        PageResultModel<TabInfoEntity> pageResultModel = thisQueryProvider.pageList(model);
        return pageResultModel;

    }


    /**
     * 分页数据-其他处选择
     *
     * @param model
     * @return
     */
    @Override
    public PageResultModel<TabInfoEntity> dataList(TabInfoModel model) {
        PageResultModel<TabInfoEntity> pageResultModel = thisQueryProvider.dataList(model);
        return pageResultModel;

    }


}
